

jQuery(function ($) {
    // var id = window.location.href.split('-')[1].split('.')[0];
    var params = {
        "Notice": {
            "id": 1
        }
    };
    send_ajax('post', '/get', params, function callback(result) {
        if (result.code == 200&&result.Notice) {

            var data = result.Notice;
            $('#location').append('<span>></span><h1>' + data.title + '</h1>\n\t\t\t');
            $('.left_content_top').append('\n            <div class="left_content_title">\n\t\t\t\t\t\t<h3>\n                            ' + data.title + "\n\t\t\t\t\t\t</h3>\n\t\t\t\t\t\t<p><span>\u66F4\u65B0\u65F6\u95F4:" + data.update_time + "</span><span>\u6587\u7AE0\u6765\u6E90\uFF1A\u6613\u4ECE\u7F51</span><span>\u6587\u7AE0\u4F5C\u8005\uFF1A\u3010\u6613\u4ECE\u7F51\u3011</span><span>\u70B9\u51FB\uFF1A " + (data.clicks + data.clicks_v) + "\n\t\t\t\t\t\t\t\t\u6B21</span></p>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"left_content_detail\">\n\t\t\t\t\t\t<div class=\"hint_box\">\n\t\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t\t<span class=\"red\">\n\t\t\t\t\t\t\t\t\t\u67E5\u770B\u9700\u8981\u4F1A\u5458\u6743\u9650\uFF0C\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class=\"yellow\">\n\t\t\t\t\t\t\t\t\t\u52A0\u5165\u4F1A\u5458\u4EAB\u53D7\u66F4\u591A\u4F18\u8D28\u540D\u5BB6\u4F5C\u54C1\u4EAB\u53D7\u66F4\u591A\u4E13\u4E1A\u8D44\u8BAF\u670D\u52A1\u3002\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<button class=\"login_btn\"><a href=\"/login/login.html\" class=\"login\" target=\"_blank\">\u767B\u5F55\u6CE8\u518C\u4F1A\u5458</a></button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<p class=\"content_tex\">\n                            " + data.content + "\n\t\t\t\t\t\t</p>\n\t\t\t\t\t\t<div class=\"left_content_detail_bottom\">\n\t\t\t\t\t\t\t<div class=\"left_content_detail_bottom_left\">\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"left_content_detail_bottom_center\">\n\t\t\t\t\t\t\t\t<span>\u767B\u5F55\u4F1A\u5458\u67E5\u770B\u8BE6\u7EC6\u8D44\u8BAF</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"left_content_detail_bottom_right\">\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>");
        }
    });

    // $.ajax({
    //     url:host+ "/api/article/last_next",
    //     success: function success(res) {
    //         if (res.code == 200) {
    //             var data = res.data;
    //             $('.left_content_top').append('<div class="link_box">\n\t\t\t<p>\u4E0A\u4E00\u7BC7\uFF1A' + data.last.title + '</p>\n\t\t\t<p>\u4E0B\u4E00\u7BC7\uFF1A' + data.next.title + '</p>\n\t\t</div>');
    //         }
    //     }
    // });
    //  var notice_param = {
    //     "notice_id": 0
    //   };
    // send_ajax('post', '/get', notice_param, function callback(result) {

    //  });


    // //咨询问答 右侧广告位
    // var params = {
    //     "WebPage": {
    //         "page_sn": "notice_detail"
    //     },
    //     "AdPosition": {
    //         "position_sn": "bottom_article_ask_right"
    //     },
    //     "Ad": {
    //         "page_id@": "WebPage/id",
    //         "position_id@": "AdPosition/id"
    //     }
    // };

    // send_ajax('post', '/get', params, function callback(res) {

    //     var data = res.Ad;
    //     $('.yc_content_pic').append('<a href="' + data.ad_link + '"><img src="' + data.img + '" alt=""></a>');
    // });

    // //咨询问答 上部广告位
    // var params = {
    //     "WebPage": {
    //         "page_sn": "notice_detail"
    //     },
    //     "AdPosition": {
    //         "position_sn": "bottom_full"
    //     },
    //     "Ad": {
    //         "page_id@": "WebPage/id",
    //         "position_id@": "AdPosition/id"
    //     }
    // };

    // send_ajax('post', '/get', params, function callback(res) {

    //     var data = res.Ad;
    //     $('.artist_pic_show').append('<a href="' + data.ad_link + '"><img src="' + data.img + '" title="" alt="' + data.img_alt + '"></a>');
    // });
});